package com.ds.test;


import com.ds.esd.annotation.event.CustomFieldEvent;
import com.ds.esd.annotation.fchart.*;
import com.ds.esd.annotation.field.FChartAnnotation;
import com.ds.esd.bean.fchart.items.RawDataListItem;
import com.ds.esd.tool.properties.fchart.RawData;

import java.util.UUID;

@ChartCustomAnnotation()
@ChartCosmeticsAnnotation(bgcolor = "FFFFFF,FFFFFF")
@ChartAnnotation(caption = "测试视图", xaxisname = "X轴名称", yaxisname = "Y轴")
@FChartAnnotation(chartType = FChartType.Column2D, customService = TestService.class, event = CustomFieldEvent.ONDATACLICK)
public class ChartView extends RawDataListItem {


    @RawDataItemAnnotation(showlabel = false)
    public ChartView(RawData rawData) {
        this.setId(UUID.randomUUID().toString());
        this.setLabel(rawData.getLabel());
        this.setValue(rawData.getValue());
        this.addTagVar("test", "test");
    }

}


